package com.zqx.springboot_shiro_two.service.impl;

import com.zqx.springboot_shiro_two.dao.UserInfoDao;
import com.zqx.springboot_shiro_two.entity.UserInfo;
import com.zqx.springboot_shiro_two.service.UserInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@Slf4j
public class UserInfoServiceImpl implements UserInfoService {

    @Resource
    private UserInfoDao userInfoDao;
    @Override
    public UserInfo findByUsername(String username) {
        log.info("UserInfoServiceImpl.findByUsername()");
        return userInfoDao.findByUsername(username);
    }
}
